// sku模块的请求
import request from '@/utils/request'

// 获取sku列表的数据 GET /admin/product/list/{page}/{limit}
export const reqSkuList = (page, limit) => request({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架的接口 GET  /admin/product/onSale/{skuId}
export const reqSale = (skuId) => request({ url: `/admin/product/onSale/${skuId}`, method: "get" })

// 下架的接口 GET  /admin/product/cancelSale/{skuId}
export const reqCanael = (skuId) => request({ url: `/admin/product/cancelSale/${skuId}`, method: 'get' })

// 获取SKU详情的接口 GET /admin/product/getSkuById/{skuId}
export const reqSkuById = (skuId) => request({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })

// 获取删除SKU的接口 DELETE /admin/product/deleteSku/{skuId}
export const reqDeleteSku = (skuId) => request({ url: `/admin/product/deleteSku/${skuId}`, method: 'delete' })
